package com.alibaba.algo.dao.user;

import com.alibaba.algo.core.base.BaseMapper;
import com.alibaba.algo.entity.user.SysResourceAction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysResourceActionMapper extends BaseMapper<SysResourceAction> {

    void deleteById(@Param(value = "id") Long id);

    List<SysResourceAction> selectByResourceId(@Param(value = "resourceId") Long resourceId);

    void validResourceAction(SysResourceAction sysResourceAction);

    List<SysResourceAction> qryResourceAction(@Param(value = "appCode") String appCode, @Param(value = "resourceId") Long resourceId, @Param(value = "roleIds") List<Long> roleIds);
}
